#include <stdio.h>

int main() 
{
    int a,b,c;

    a = 40;
    c = 212; 
    b = (-8+22) *a-10+c/2;
    
    printf("%d",b);

    return 0;
}